<?php


namespace app\home\model;


use think\Model;
use traits\model\SoftDelete;

class Essay extends Model
{
    use SoftDelete;
    protected $autoWriteTimestamp='datetime';
    protected $table='article';
    public function classify(){
        return $this->hasOne('Classify','id','type_id');
    }

}